package com.io.example.demoparent.simpleness;


import com.io.example.demoparent.simpleness.factory.SimpleFactory;
import com.io.example.demoparent.simpleness.order.OrderPizza;

public class Client {

    /**
     * 测试单工厂使用
     * @param args
     */
    public static void main(String[] args) {
        SimpleFactory simpleFactory = new SimpleFactory( );
        OrderPizza orderPizza = new OrderPizza("xxx",simpleFactory);
        orderPizza.createOrder().prepare();
        orderPizza.createOrder().bake();
        orderPizza.createOrder().cut();
        orderPizza.createOrder().box();
        OrderPizza orderPizza2 = new OrderPizza("cheese",simpleFactory);
        orderPizza2.createOrder().prepare();
        orderPizza2.createOrder().bake();
        orderPizza2.createOrder().cut();
        orderPizza2.createOrder().box();
    }
}
